
	
/****** Object:  Stored Procedure [dbo].tblInternalRateInsert    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblInternalRateInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblInternalRateInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: [dbo].sptblInternalRateInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:37
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblInternalRateInsert
	@BuyCCY varchar(3),
	@FloorRate decimal(10, 2),
	@SellCCY varchar(3),
	@CeilingRate decimal(10, 2),
	@InternalRate decimal(10, 2),
	@FromFileID uniqueidentifier,
	@CreatedDate datetime,
	@CreatedBy varchar(7),
	@ID uniqueidentifier output
AS

SET @ID = NEWID()

INSERT INTO [dbo].[tblInternalRate] 
(
	[ID],
	[BuyCCY],
	[FloorRate],
	[SellCCY],
	[CeilingRate],
	[InternalRate],
	[FromFileID],
	[CreatedDate],
	[CreatedBy]
) 
VALUES 
(
	@ID,
	@BuyCCY,
	@FloorRate,
	@SellCCY,
	@CeilingRate,
	@InternalRate,
	@FromFileID,
	@CreatedDate,
	@CreatedBy
)

GO
	
